function queryDetail(id) {
	console.info('查看帖子详细信息---> ' + id);
	 $('#initForm').action="http://localhost:8080/web/forumAction_detail.action?forumBean.topicId=" + id; 
}
function login(){
	console.info('登录事件。。。。');
	var userName = $('#login_name').val();
	var pwd = $('#login_pwd').val();
	$.ajax({
		type: "POST",
		url: "web/initAction_login.action",
		data: "user.userName=" + userName +"&user.password=" + pwd,
		success: function(msg){
			console.info('请求返回信息：' + msg);
			if('err' == msg){
				$('#loginErrMsg').html('账号或密码错误');
			}else{
				var strs= new Array(); //定义一数组
				strs=msg.split("&"); //字符分割      
				
				$('#curUserId').val(strs[0]);
				$('#curUserName').html(strs[1]);
				
				$('#header').hide();
				$('#loginSuc').show();
				console.info('测试。。。');
				closeed('fd');
			}
		}
	}); 
}

function exitLogin(){
	$('#curUserId').val('');
	$('#curUserName').html('');
	
	$('#header').show();
	$('#loginSuc').hide();
}